using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace LHS.Win
{
    public partial class SplashScreen : Form
    {
       
        // Methods
        public SplashScreen()
        {
            this.InitializeComponent();
        }

        public void BeginDisplay()
        {
            for (int i = 0; i < 0x12f; i++)
            {
                base.TopMost = true;
                this.lblStatus.Refresh();
                this.lblBackColor.Refresh();
                this.lblLoad.Width = i;
                this.lblLoad.Refresh();
                Thread.Sleep(0x77);
                if (i == 0x12e)
                {
                    i = 0;
                }
                if (this.blEnd)
                {
                    base.TopMost = true;
                    this.lblStatus.Refresh();
                    this.lblBackColor.Refresh();
                    this.lblLoad.Width = 0x12e;
                    this.lblLoad.Refresh();
                    break;
                }
            }
        }

        public void EndDisplay()
        {
            this.blEnd = true;
        }


    }
}